#include "UdpServe.hpp"

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        LOG(FATAL, "指令错误");
        exit(1);
    }

    LOG(DEBUG, "指令正确\n");
    uint16_t port = std::stoi(argv[1]);
    LOG(DEBUG, "port: %04d", port);
    UdpServe udp(port);

    udp.usInit();
    udp.usStart();

    return 0;
}